package com.nativetalk.service.live.insert;

import com.nativetalk.base.RetInfo;
import com.nativetalk.bean.live.TdNtLiveCourseInsert;
import com.nativetalk.bean.live.TdNtLiveStudyInsert;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.sql.Timestamp;

/**
 * Created by lizhun on 16/5/11.
 */
public interface LiveInsertService {
    /**
     * @Purpose  添加直播课程
     * @version  2.1
     * @author   lizhun
     * @param    tdNtLiveCourseInsert
     * @return   RetInfo
     */
    public RetInfo addLiveCourse(TdNtLiveCourseInsert tdNtLiveCourseInsert, CommonsMultipartFile[] pictures,CommonsMultipartFile cover);
    /**
     * @Purpose  添加直播课程图片
     * @version  2.1
     * @author   lizhun
     * @param    live_cou_id
     * @return   RetInfo
     */
    public RetInfo addLiveCoursePicture(int live_cou_id,int tea_id, CommonsMultipartFile[] pictures);
    /**
     * @Purpose  添加直播
     * @version  2.1
     * @author   lizhun
     * @param    live_cou_id
     * @return   RetInfo
     */
    public RetInfo addLiveHis(int live_cou_id, Timestamp timestamp);
    /**
     * @Purpose  购买直播
     * @version  2.1
     * @author   lizhun
     * @param    tdNtLiveStudyInsert
     * @return   RetInfo
     */
    public RetInfo addLive( TdNtLiveStudyInsert tdNtLiveStudyInsert, String channel, String userBlanace, String orderNo);

    /**
     * 保存直播课录音
     *
     * @param live_cou_his_id 直播课id
     * @param recordingFile   录音文件
     * @return RetInfo
     * @version 4.1
     * @date 2015-03-15
     * @author Peter
     */
    public RetInfo uploadLiveCourseHisRecording(int live_cou_his_id, CommonsMultipartFile recordingFile);

    /**
     * @Purpose  跳转到第三方支付界面
     * @version  4.1
     * @author   wangzheng
     * @param    memb_id
     * @param    amount
     * @param    ip
     * @return   RetInfo
     */
    public RetInfo transferBuy(Integer memb_id, Float amount, String ip, String channel);

}
